<load href="../Public/css/account.css" />
<load href="../Public/js/plugin/jquery-ui/theme/Aristo.min.css" />
<load href="../Public/js/plugin/jquery-ui/jquery-ui.min.js" />
<load href="../Public/js/plugin/jquery-validation-1.9.0/jquery.validate.min.js" />
<load href="../Public/js/plugin/jquery-validation-1.9.0/localization/messages_cn.js" />
<load href="../Public/js/plugin/jquery-validation-1.9.0/lib/jquery.metadata.js" />

<div id="main-content">

    <div class="left">
        <div class="thin-caption">
            <div class="thin-caption-left"></div>
            <div class="thin-caption-content"></div>
            <div class="thin-caption-right"></div>
        </div>
        <div class="user-page-header">
            <div class="fleft">

                <img src="../Public/images/default.png">

            </div>
            <div class="fleft">
                <h1>{$Think.Session.WEB_USER.nick_name }<span>用过的</span></h1>
                <span id="isself" class="hidden">true</span>
                <span class="mine-tab clearfix">
                    <a href="__APP__/User/mycomment.shtml">我的评论</a>
                    <a href="__APP__/User/myrecommendation.shtml"><span>我的推荐</span><div class="clear"></div></a>
                </span>
            </div>
            <div class="clear"></div>
        </div>
        <div class="left-field profile-page profile-mine-page clearfix">

            <div class="profile-mine-content clearfix">

                <form id="frm_modify" method="post" action="__APP__/User/addRecommend.shtml" class="form-box">
                    <input type ="hidden" name="id" value="{$r.id }" />
                    <div style="display:none"></div>
                    <div class="input-box input-pwd">
                        <label for="id_old_password">应用名称:</label>
                        <input type="text" name="name" id="id_old_password"  class="{required:true,maxlength:128}" value="{$r.name }" />
                        <span class="error"></span>
                    </div>
                    <div class="input-box input-pwd">
                        <label for="id_new_password1">应用链接:</label>
                        <input type="text" name="link" id="id_new_password1" class="{required:true,maxlength:512}" value="{$r.link }" />
                        <span class="error"></span>
                    </div>
                    <div class="input-box input-pwd">
                        <label for="id_new_password2">推荐理由:</label>
                        <textarea name="reason" class="{required:true,maxlength:512}" id="id_new_password2">{$r.reason }</textarea>
                        <span class="error"></span>
                    </div>
                    <a id="a_recommend_submit" class="rectangle-button" href="javascript:;" style="margin-top:10px;">提交</a>
                </form>

            </div>
            <div style="margin-top:10px;" class="advance-paging">

                <div class="clear"></div>

            </div>
        </div>
        <div class="left-shadow clearfix"></div>
    </div>
    <div class="right">

    </div>
    <div class="clear">
    </div>
    <script>
        $(function(){
            $("#a_recommend_submit").click(function(){
                var $form = $("#frm_modify");
                
                $form.validate();
                $form.submit();
            });
        });
    </script>

</div>

<form id="frm_hidden_mycomment" method="post"></form>
